import React from 'react';
import {useParams} from "react-router-dom";

function Two(props) {
    // console.log(useParams());
    const {id,type} = useParams();
    return (
        <div>
            <p>id:{id}</p>
            <p>type:{type}</p>
        </div>
    );
}

export default Two;